<ui:fragment xmlns="http://www.w3.org/1999/xhtml"
			 xmlns:ui="http://java.sun.com/jsf/facelets"
			 xmlns:h="http://java.sun.com/jsf/html"
			 xmlns:f="http://java.sun.com/jsf/core"
			 xmlns:rich="http://richfaces.org/rich"
      		 xmlns:a4j="http://richfaces.org/a4j">
	
	<rich:panel id="errorMessagePanel"  styleClass="errorMessageClass" 
				rendered="#{messageMB.errorMessagesPresence}">
		
		<h:graphicImage value="/images/close.gif" styleClass="btnClose" />
        
        <rich:effect type="Fade" for="errorMessagePanel" event="onclick" />
        
		<h:panelGrid>
			<rich:messages layout="list" level="ERROR">
                <f:facet name="errorMarker">
                    <h:graphicImage value="/images/error.gif" />   
                </f:facet>
			</rich:messages>
		</h:panelGrid> 
	</rich:panel>
	
	<rich:panel id="infoMessagePanel" styleClass="infoMessageClass" 
				rendered="#{messageMB.infoMessagesPresence}">
				
		<h:graphicImage value="/images/close.gif" styleClass="btnClose" />
        
        <rich:effect type="Fade" for="infoMessagePanel" event="onclick" />
			
		<h:panelGrid>
			<rich:messages layout="list" level="INFO">
                 <f:facet name="passedMarker">
           			<h:graphicImage  value="/images/passed.gif" /> 
       			</f:facet>
			</rich:messages>
		</h:panelGrid> 
	</rich:panel>
	
</ui:fragment>